<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.api.aron.utils.CommonUtils" %>
<%@ page import="net.sf.json.JSONObject" %>
<%@ page import="weaver.file.FileUpload" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<%@ page import="weaver.hrm.User" %>
<jsp:useBean id="requestManager" class="weaver.workflow.request.RequestManager" scope="page"/>
<jsp:useBean id="recordSet" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="baseBean" class="weaver.general.BaseBean" scope="page"/>
<%@ page import="weaver.hrm.User" %>


<%
    FileUpload fu = new FileUpload(request);
    int formid = Util.getIntValue(fu.getParameter("formid"));
    String method = Util.null2String(fu.getParameter("method"));
    Map<String,String> fieldMaps = new HashMap<String,String>();
    if(method.equals("getFieldId")){
        if(formid != -1){
    fieldMaps = CommonUtils.getFieldid(formid);
        }
    }
    JSONObject data = JSONObject.fromObject(fieldMaps);
    out.print(data.toString());
%>